import { ElInput } from 'element-plus';


const Input = (config, params, emit, hasEvent) => {
    if(hasEvent) {
        return (
            <ElInput {...config.labelProps} v-model={params[config.props.prop]} onInput={() => emit('changeEvent', config)} />
        )
    }else {
        return (
            <ElInput {...config.labelProps} v-model={params[config.props.prop]} />
        )
    }

}

export default Input
